﻿@model Resto.CostControl.Core.Facade.MaterialModule.DataTransferObject.MaterialDTO
@using Resto.CostControl.WebControl.DWZAdapter
<div class="pageContent">
    @using (Html.DWZBeginForm())
    { 
        <div class="pageFormContent" layouth="56">
            @Html.HiddenFor(model => model.ID)
            @Html.DWZTextBoxFor(model => model.Name).Required()
            @Html.DWZDropDownListFor(model => model.Specification, "MaterialSpec")
            @Html.DWZTextBoxFor(model => model.Code).Required()
            @Html.DWZTextBoxFor(model => model.CurrentPrice).Number()
            @Html.DWZDropDownListFor(model => model.Unit, "MaterialUnit").Required()
            @Html.DWZDropDownListFor(model => model.CategoryCode, "MaterialCategory").Required()
            @Html.DWZTextBoxFor(model => model.SafeStorage).Number()
            @Html.DWZTextBoxFor(model => model.ActualSorage).Number()
            @Html.DWZDropDownListFor(model => model.Type, "MaterialType").Required()
            @Html.DWZEmptyBox()
            @Html.DWZDropDownListFor(model => model.RawMaterialId, "Material")
            @Html.DWZTextBoxFor(model => model.ProcessRate).Number()
            @Html.DWZTextAreaFor(model => model.Remark)
        </div>
        @Html.DWZFormBar()
    }
</div>
